import uni from '@dcloudio/vite-plugin-uni';
import UnoCSS from 'unocss/vite';
import autoImport from './autoImport';
import compontents from './components';
import manifest from './manifest';
import pages from './pages';
import polyfill from './polyfill';

export default function vitePlugins() {
  return [
    compontents(),
    manifest(),
    pages(),
    autoImport(),
    polyfill(),
    UnoCSS(),
    // 注意这个插件要放在最后，不然会影响自动导入
    uni(),
  ];
}
